package routers

import (
	"demo/webSocket/controllers"
	"github.com/gin-gonic/gin"
)

func InitV1(g *gin.Engine) {

	g.GET("/ws/connect", controllers.Connect)
	g.POST("/ws/test/close", controllers.TestClose)

	//推送给单个用户 TestWsSendOneUser
	g.GET("/ws/testWsSendOneUser", controllers.TestWsSendOneUser)

	//推送指定多个用户 TestWsSendDesignateUser
	g.GET("ws/testWsSendDesignateUser", controllers.TestWsSendDesignateUser)

	//推送给所有用户
	g.GET("/ws/testSendAllUser", controllers.TestSendAllUser)

}
